-- GENERATED SPELL FOR [Admiral Odesyus] --


function spell0_17240(pUnit, Event) --6Summon Tree Disguise Kit,n/a--
pUnit:FullCastSpellOnTarget(30353,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17240', 1000, 1)
end

function Sorts_17240(pUnit, Event)
local choix_sorts_17240 = math.random(0, 0)
if choix_sorts_17240 == 0 then
pUnit:RegisterEvent('spell0_17240', 1, 1)
end
end

function mob17240_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17240', math.random(1500, 3000), 1)
end

function mob17240_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17240_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17240_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17240, 1, 'mob17240_Action')
RegisterUnitEvent(17240, 2, 'mob17240_Leave')
RegisterUnitEvent(17240, 3, 'mob17240_Kill')
RegisterUnitEvent(17240, 4, 'mob17240_Die')
